<?php

namespace CtyunOss\struct;

use Carbon\Carbon;
use CtyunOss\cors\ArrayObject;

/**
 * Class Bucket
 * @package CtyunOss\object
 *
 * @author  Violet_Ice紫冰 <violetice@aliyun.com>
 * @create  2020-06-26 16:21:53
 */
class Bucket extends ArrayObject
{
    /** @var string 容器名称 */
    public $Name;

    /** @var Carbon 创建时间 */
    public $CreationDate;

    public function __construct(array $data = [])
    {
        parent::__construct($data);
        $this->CreationDate = Carbon::parse($data['CreationDate']);
    }
}